package yf.mall.enums;

import lombok.Getter;


/**
 * 
 *
 * @date Sun May 24 14:16:14 CST 2020
 */
@Getter
public enum PlatformEnum {

   WEB(0,"H5"),
   WX_MINI(0,"微信小程序"),
   APP(1,"APP");

    int index;
    String value;

    PlatformEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return PlatformEnum.values()[idx].getValue();
    }

}
